<img id="zone_image" src="img/<?= $this->model->image ?>.png"/>

<div id="ajax_area"><img src="img/icons/ajax-loader.gif" id="loader-gif"/></div>

<script>
  function updateTalkLog(talkingPoint)
  {
    if (talkingPoint == 'cancel')
    {
      document.location.replace('game/index');
    }
    else
    {
      $('#talk_log').append('<img src="img/icons/ajax-loader.gif" id="loader-gif"/>');
      $.get('talk/ajax_log/id/<?= $this->selectedAction ?>/tp/'+talkingPoint, function(data){
        $('#ajax_area').html(data);
      });
      $('#talk_options').fadeTo('normal', 0.5);
    }
  }
  
  updateTalkLog('<?= $this->model->currentId ?>');
</script>
